You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Math387 Class > Math387 Methods > Sign Method > Math387.Sign Method ([In] double, [In] double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Math387.Sign Method ([In] double, [In] double)

Fortran sign function.

Syntax
C#
Visual Basic
public static double Sign([In] double a, [In] double b);

It uses slightly different definition for changing sign of a complex number:

  • if b>=0, it returns |a|,
  • otherwise, -|a|.
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!